package com.haitaoit.chengquan.business.data;

import android.content.Context;
import android.os.Handler;

import com.haitaoit.chengquan.business.http.QLResponseCall;
import com.haitaoit.chengquan.utils.AppLog;

/**
 * 专员订单详情查看孩子信息
 *
 * @author zb
 * @date 创建时间：2015年9月11日 下午7:16:30
 */
public class ShiyanHttp extends BaseHttp {
    private Handler handler;
    private int what;


    public ShiyanHttp(Context context, Handler handler) {
        this.context = context;
        this.handler = handler;

        start();
    }

    private void start() {
//        orderPayReq.setPay_platform(2);
//        String param = new Gson().toJson(orderPayReq);
//        AppLog.D("param:" + param);
        String url="http://cqapi.hai-tao.net/api/User/Getuser_address_list?user_id=49&page=1&pagesize=10&sign=60d1b8df341caa6455a641cdf5462ded";
        AppLog.D("url:" + url);
        getHttp().get(url, new QLResponseCall() {
            @Override
            public void onStart() {
                onStartHandler(handler);
            }

            @Override
            public void onFailure(String arg0, int error) {
                AppLog.D("onFailure:" + error);
                AppLog.D("onFailure:" + arg0);
                onFailureHandler(context, handler, arg0, error);
            }

            @Override
            public void onSuccess(String result) {
                AppLog.D("result:" + result);
                onSuccessHandler(context, handler, result);
            }
        });
    }

    @Override
    void getData(Handler handler, BaseDataResp responseObj) {
//        sendHandler(handler, null, what);
    }




}
